package com.gdpa.mapper;

import com.gdpa.entity.DistrArea;
import com.gdpa.entity.DistrBuilding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分销楼盘表 Mapper 接口
 * </p>
 *
 * @author zsr
 * @since 2018-12-19
 */
public interface DistrBuildingMapper extends BaseMapper<DistrBuilding> {
    DistrArea AreaIsExist(@Param("area") String area);
    List<DistrBuilding> getAllBuilding(Integer id);
    Integer addBuild(DistrBuilding building);
    List<DistrBuilding> findBuilding(DistrBuilding building);
    Integer deleteBuild(String id);
}
